<!DOCTYPE html>
<html>
  
  <head>
    <meta charset="UTF-8">
    <title>欢迎页面-X-admin2.0</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
	
    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
    <link rel="stylesheet" href="/static/xadmin/css/font.css">
	<link rel="stylesheet" href="/static/xadmin/css/xadmin.css">
    <script type="text/javascript" src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
    <script src="/static/xadmin/lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="/static/xadmin/js/xadmin.js"></script>
	
    <!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
    <!--[if lt IE 9]>
      <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
      <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
  </head>
  
  <body>
    <div class="x-nav">
      <span class="layui-breadcrumb">
        <a href="">首页</a>
        <a href="">演示</a>
        <a>
          <cite>导航元素</cite></a>
      </span>
      <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" href="javascript:location.replace(location.href);" title="刷新">
        <i class="layui-icon" style="line-height:30px">ဂ</i></a>
    </div>
    <div class="x-body">
    <table class="layui-table" lay-data="{url:'/rbac/role/RoleToUserList',headers: {'X-Requested-With':'XMLHttpRequest'},page:true,toolbar: '#toolbarHead',limit:25,limits:[25, 50,100],id:'NodeList'}" lay-filter="NodeList">
      <thead>
        <tr> 
          <th lay-data="{type:'checkbox'}"></th>
          <th lay-data="{field:'Id',sort: true}">ID</th>
		  <th lay-data="{field:'Username',sort: true}">用户名</th>
          <th lay-data="{field:'Nickname',sort: true,edit:'txt'}">昵称</th>
          <th lay-data="{field:'Email',sort: true,edit:'txt'}">Email</th>
          <th lay-data="{field:'Lastlogintime',sort: true}">上次登录</th>
          <th lay-data="{field:'Createtime',sort: true}">创建时间</th>
		  <th lay-data="{field:'Status',sort: true,edit:'txt'}">状态</th>
          <th lay-data="{field:'Remark',sort: true,edit:'txt'}">备注</th>
        </tr>
      </thead>
    </table>

  <!-- 添加弹出框	-->
  <div class="layui-row" id="AddUserInfodiv" style="display:none;">
    <div class="layui-col-md11">
      <form class="layui-form layui-form-pane" action="" lay-filter="AddUserInfo">
 <div class="layui-form-item">
  <div class="layui-inline">
    <label class="layui-form-label">用户名</label>
    <div class="layui-input-inline" style="width: 213px;">
      <input type="text" name="Username" autocomplete="off" placeholder="" class="layui-input">
    </div>
   </div>
  </div>
        <div class="layui-form-item">
          <button class="layui-btn" lay-submit="" lay-filter="AddUserSubmit">确认添加</button>
        </div>
      </form>
    </div>
  </div>
  <!-- 添加弹出框	-->	
    </div>
<script type="text/html" id="toolbarHead">
  <div class="layui-btn-container">
    <button class="layui-btn"  lay-event="AddUserToRole"><i class="layui-icon"></i>添加</button>
	<button class="layui-btn layui-btn-danger" lay-event="DelUserInRole"><i class="layui-icon"></i>删除</button>
  </div>
</script>	
    <script>
      layui.use(['form','table','laydate'], function(){
        var laydate = layui.laydate;
		var table = layui.table;
        var form=layui.form;
        
        //执行一个laydate实例
        laydate.render({
          elem: '#start' //指定元素
        });

        //执行一个laydate实例
        laydate.render({
          elem: '#end' //指定元素
        });

		

   $('.demoTable .layui-btn').on('click', function(){
    var type = $(this).data('type');
    active[type] ? active[type].call(this) : '';
  });	
 });  
    </script>
  </body>

</html>